package com.suzj.extraenchantments.enchant.Ench_02;

import com.suzj.extraenchantments.Config;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentDestructiveAccretion extends Enchantment {
    public EnchantmentDestructiveAccretion() {
        super(Enchantment.Rarity.RARE, EnchantmentCategory.WEAPON, new EquipmentSlot[]{EquipmentSlot.MAINHAND});
    }

    public int getMaxLevel() {
        if (((Boolean) Config.SERVER.isDestructiveAccretion.get()).booleanValue()) {
            return 1;
        }
        return 0;
    }

    public int getMinCost(int p_77321_1_) {
        return 30;
    }

    public int getMaxCost(int p_223551_1_) {
        return 50;
    }
}